<%@taglib uri="/WEB-INF/struts-logic.tld" prefix="logic"%>
<%@taglib uri="/WEB-INF/struts-html.tld" prefix="html"%>
<%@taglib uri="/WEB-INF/struts-tiles.tld" prefix="tiles"%>
<%@ taglib uri="/WEB-INF/struts-bean.tld" prefix="bean" %>
<% //String str_path = request.getContextPath(); %>
<SCRIPT language=JavaScript src="<bean:write name="path"/>/menu/milonic_src.js" type=text/javascript></SCRIPT>
<SCRIPT language=JavaScript src="<bean:write name="path"/>/menu/mmenudom.js" type=text/javascript></SCRIPT>
<tiles:insert page="menu_js.jsp"/>
<script language="javascript" type="text/javascript" src="<bean:write name="path"/>/js/util.js"></script>
<script type="text/javascript">
function fnc_imagen(arg) {
	if (document.images) {
		rslt = new Image();
		rslt.src = arg;
		return rslt;
	}
}

function fnc_cambiarImagen() {
	if (document.images && (bol_imagenesPrecargadas == true)) {
		for (var i=0; i<fnc_cambiarImagen.arguments.length; i+=2) {
			document[fnc_cambiarImagen.arguments[i]].src = fnc_cambiarImagen.arguments[i+1];
		}
	}
}

var bol_imagenesPrecargadas = false;
function fnc_precargarImagenes() {
	if (document.images) {
		img_imagenTmpSolicitud = fnc_imagen("<%=request.getContextPath()%>/images/img_menuSolicitudO.gif");
		img_imagenTmpCatalogo = fnc_imagen("<%=request.getContextPath()%>/images/img_menuCatalogoO.gif");
		img_imagenTmpInicio = fnc_imagen("<%=request.getContextPath()%>/images/img_menuInicioO.gif");
		img_imagenTmpSalir = fnc_imagen("<%=request.getContextPath()%>/images/img_menuSalirO.gif");
		bol_imagenesPrecargadas = true;
	}
}
fnc_precargarImagenes();
function fnc_salirAplicacion(){
	return confirm("Desea Salir de EPrice ? ");
}
</script>
<table width="100%" border="0" cellpadding="0" cellspacing="0">
  <tr>
    <td width="14" height="30"><img src="<%=request.getContextPath()%>/images/img_menuVacio01.gif" width="14" height="30"/></td>
    <td width="106" height="30"><logic:notPresent name="usuario"><img src="<%=request.getContextPath()%>/images/img_menuVacio02.gif" width="106" height="30"/></logic:notPresent><logic:present name="usuario"><html:link action="listadoAction.do?action=listado&bool_asc=true&int_orden=1" onmouseover="fnc_cambiarImagen('img_inicio', 'images/img_menuInicioO.gif'); return true;" onmouseout="fnc_cambiarImagen('img_inicio', 'images/img_menuInicio.gif'); return true;"><img name="img_inicio" src="<%=request.getContextPath()%>/images/img_menuInicio.gif" width="106" height="30" border="0"/></html:link></logic:present></td>
    <td width="107" height="30"><logic:notPresent name="usuario"><img src="<%=request.getContextPath()%>/images/img_menuVacio03.gif" width="107" height="30"/></logic:notPresent><logic:present name="usuario"><html:link action="salir?action=exit" onclick="return fnc_salirAplicacion();" onmouseover="fnc_cambiarImagen('img_salir', 'images/img_menuSalirO.gif'); return true;" onmouseout="fnc_cambiarImagen('img_salir', 'images/img_menuSalir.gif'); return true;"><img name="img_salir" src="<%=request.getContextPath()%>/images/img_menuSalir.gif" width="107" height="30" border="0"/></html:link></logic:present></td> 
	    <!--  Inicia Menu Cotizador -->     
    <td width="126" height="30"><logic:notPresent name="usuario"><img src="<%=request.getContextPath()%>/images/img_menuVacio04.gif" width="126" height="30"/></logic:notPresent><logic:present name="usuario"><logic:notPresent name="permisos_app"><img src="<%=request.getContextPath()%>/images/img_menuVacio04.gif" width="126" height="30"/></logic:notPresent><logic:present name="permisos_app"><html:link href="#" onmouseover="fnc_cambiarImagen('img_cotizador', 'images/img_cotizador.gif'); popup('cotizador', 'img_cotizador'); return true;" onmouseout="fnc_cambiarImagen('img_cotizador', 'images/img_cotizador.gif'); popdown(); return true;"><img id="img_cotizador" name="img_cotizador" src="<%=request.getContextPath()%>/images/img_cotizador.gif" width="126" height="30" border="0"/></html:link></logic:present></logic:present></td>	
     <!-- Finaliza Menu Cotizador -->  
    <td width="126" height="30"><logic:notPresent name="usuario"><img src="<%=request.getContextPath()%>/images/img_menuVacio04.gif" width="126" height="30"/></logic:notPresent><logic:present name="usuario"><logic:notPresent name="permisos_app"><img src="<%=request.getContextPath()%>/images/img_menuVacio04.gif" width="126" height="30"/></logic:notPresent><logic:present name="permisos_app"><logic:equal name="permisos_app" property="bol_crearSolicitud" value="true"><html:link href="#" onmouseover="fnc_cambiarImagen('img_solicitud', 'images/img_menuSolicitudO.gif'); popup('solicitud', 'img_solicitud'); return true;" onmouseout="fnc_cambiarImagen('img_solicitud', 'images/img_menuSolicitud.gif'); popdown(); return true;"><img id="img_solicitud" name="img_solicitud" src="<%=request.getContextPath()%>/images/img_menuSolicitud.gif" width="126" height="30" border="0"/></html:link></logic:equal><logic:equal name="permisos_app" property="bol_crearSolicitud" value="false"><img src="<%=request.getContextPath()%>/images/img_menuVacio04.gif" width="126" height="30"/></logic:equal></logic:present></logic:present></td>	      
    <td width="118" height="30" ><logic:notPresent name="usuario"><img src="<%=request.getContextPath()%>/images/img_menuVacio05.gif" width="118" height="30"/></logic:notPresent><logic:present name="usuario"><logic:notPresent name="permisos_app"><img src="<%=request.getContextPath()%>/images/img_menuVacio05.gif" width="118" height="30"/></logic:notPresent><logic:present name="permisos_app"><logic:equal name="permisos_app" property="bol_catalogo" value="true"><html:link href="#"  onmouseover="fnc_cambiarImagen('img_catalogo', 'images/img_menuCatalogoO.gif'); popup('catalogos', 'img_catalogo'); return true;" onmouseout="fnc_cambiarImagen('img_catalogo', 'images/img_menuCatalogo.gif'); popdown(); return true;"><img id="img_catalogo" name="img_catalogo" src="<%=request.getContextPath()%>/images/img_menuCatalogo.gif" width="118" height="30" border="0"/></html:link></logic:equal><logic:equal name="permisos_app" property="bol_catalogo" value="false"><img src="<%=request.getContextPath()%>/images/img_menuVacio05.gif" width="118" height="30"/></logic:equal></logic:present></logic:present></td>
    <td width="126" height="30"><img src="<%=request.getContextPath()%>/images/img_menuVacio06.gif" width="126" height="30"/></td>
    <td width="118" height="30"><img src="<%=request.getContextPath()%>/images/img_menuVacio07.gif" width="118" height="30" border="0"/></td>
    <td width="100%" height="30"><img src="<%=request.getContextPath()%>/images/img_menuVacio08.gif" width="100%" height="30" border="0"/></td>
  </tr>
</table>
<!-- 
	<td width="126" height="30">
		<logic:notPresent name="usuario">
			<img src="<%=request.getContextPath()%>/images/img_menuVacio04.gif" width="126" height="30"/>
		</logic:notPresent>
		<logic:present name="usuario">
			<logic:notPresent name="permisos_app">
				<img src="<%=request.getContextPath()%>/images/img_menuVacio04.gif" width="126" height="30"/>
			</logic:notPresent>
			<logic:present name="permisos_app">
				<logic:equal name="permisos_app" property="bol_crearSolicitud" value="true">
					<html:link href="#" onmouseover="fnc_cambiarImagen('img_solicitud', 'images/img_menuSolicitudO.gif'); popup('cotizador', 'img_cotizador'); return true;" onmouseout="fnc_cambiarImagen('img_solicitud', 'images/img_menuSolicitud.gif'); popdown(); return true;">
						<img name="img_cotizador" src="<%=request.getContextPath()%>/images/img_menuSolicitud.gif" width="126" height="30" border="0"/>
					</html:link>
				</logic:equal>
				<logic:equal name="permisos_app" property="bol_crearSolicitud" value="false">
					<img src="<%=request.getContextPath()%>/images/img_menuVacio04.gif" width="126" height="30"/>
				</logic:equal>
			</logic:present>
		</logic:present>
	</td>
	
	-->